#ifndef __COUP_HH__
#define __COUP_HH__

using namespace std;

typedef int Player;

class Point {
	public :
		int x;
		int y;
		Point () {};
		Point (int px, int py) : x(px), y(py){};
		int distance (const Point&) const;
};

class Coup {
	public :
		Coup () {};
		Coup (Point&, Point&, Player);
		const Point& getOrig () const { return this->orig; };
		const Point& getDest () const { return this->dest; };
		bool getPlayer () const { return this->player; };
		int longueur () const;
		
	private :
		Point orig;
		Point dest;
		Player player;
};

#endif
